Skip to content

add start-postgres composite action#7

Draft
markatto wants to merge 1 commit into
mainfrom
mark/start-postgres-action
Draft

add start-postgres composite action#7
markatto wants to merge 1 commit into
mainfrom
mark/start-postgres-action

Conversation

@markatto
Copy link
Copy Markdown

Reusable shim for services: { postgres: ... } on ARC runners, which can't use services: (no docker daemon). Installs postgres via apt-get, starts it on localhost:5432 with trust auth.

- uses: lightsparkdev/.github/actions/start-postgres@v1
  with: { version: "16", database: "mydb" }

Inputs: version (default "16"), database (optional createdb), password (optional ALTER USER; only if client code reads a literal).

Two in-flight PRs are currently inlining the same install block — they'll switch to this action once it's tagged v1:

  • lightsparkdev/spark#6797 (go.yml::check-ent-db)
  • lightsparkdev/webdev#27434 (backend.yaml::check-ent-db)

Installs postgres directly on the runner via apt-get and starts it on
localhost:5432 with trust auth. Drop-in for `services: { postgres: ... }`
on ARC runners (where the docker daemon isn't available).

Inputs: version (default 16), database (optional createdb), password
(optional, only if client code wants a literal).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant